package com.mcxx.modules.miniSalvation.order.dao.write;

import com.mcxx.modules.miniSalvation.family.dto.SalvationObjectDTO;
import com.mcxx.modules.miniSalvation.order.dto.ExInsuranceDetailsDTO;
import com.mcxx.modules.miniSalvation.order.dto.ExInsuranceDrawUpDTO;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BusiInsureDetailWriteDao extends Ta404SupportMapper {



    int addInsurance(ExInsuranceDrawUpDTO insurance);



    int addInsuranceDetails(@Param("insuranceDetails") List<ExInsuranceDetailsDTO> insuranceDetails);



     int updateInsuraceDetails(@Param("insuranceId") String insuranceId,@Param("objIds") List<String> objIds);



    int confirm(@Param("insuranceId") String insuranceId,@Param("type") String type,@Param("draw") ExInsuranceDrawUpDTO draw);



    int confirmInit(@Param("draw") List<ExInsuranceDrawUpDTO> draw);



    int updateInsuranceObjNumber(@Param("insuranceId") String insuranceId,@Param("number") Integer number);





    int delInsurace (@Param("insuranceId") String insuranceId);


    int delInsuranceDetails(@Param("insuranceId") String insuranceId);



    int updateInsurance(ExInsuranceDrawUpDTO insuranceDrawUpDTO);



    int delSelectObj(@Param("ids") List<String> ids);




}
